package cn.duli.xianer.pojo;

import com.github.pagehelper.PageInfo;

import java.util.List;

public class MyResult {

    // http 状态码
    private Integer code;

    // 返回信息
    private String msg;

    // 返回token
    private String token;

    // 返回数据列表
    private List<?> list;

    // 返回的数据对象
    private Object object;

    // 返回分页的数据列表
    private PageInfo<?> pageInfo;


    public MyResult(Integer code, String msg,String token, List<?> list, Object object, PageInfo<?> pageInfo) {
        this.code = code;
        this.msg = msg;
        this.token = token;
        this.list = list;
        this.object = object;
        this.pageInfo = pageInfo;
    }

    public MyResult() {
        super();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<?> getList() {
        return list;
    }

    public void setList(List<?> list) {
        this.list = list;
    }

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    public PageInfo<?> getPageInfo() {
        return pageInfo;
    }

    public void setPageInfo(PageInfo<?> pageInfo) {
        this.pageInfo = pageInfo;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
